# $Id: PKGBUILD 82492 2013-01-19 15:11:52Z thestinger $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Oliver Herold <oliver - at - akephalos - dot - de>

pkgname=scrypt
pkgver=1.1.6
pkgrel=3
pkgdesc="key derivation function and encryption utility"
arch=('i686' 'x86_64')
depends=(openssl)
url="http://www.tarsnap.com/scrypt/"
license=('BSD')
source=(http://www.tarsnap.com/scrypt/scrypt-1.1.6.tgz LICENSE)
md5sums=('a35523cd497f7283635ce881db39c2e2')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}
md5sums=('a35523cd497f7283635ce881db39c2e2'
         '46754c4c55dc7c70dbb3480dce6274da')
